package com.bdcom.autotest.telnet.model;

public class UpgradeMasterObj extends TelnetCMDObj {
    public String tftpIP;
    public String srcFile;
    public String dstFile;

    public String getTftpIP() {
        return tftpIP;
    }

    public void setTftpIP(String tftpIP) {
        this.tftpIP = tftpIP;
    }

    public String getSrcFile() {
        return srcFile;
    }

    public void setSrcFile(String srcFile) {
        this.srcFile = srcFile;
    }

    public String getDstFile() {
        return dstFile;
    }

    public void setDstFile(String dstFile) {
        this.dstFile = dstFile;
    }
    public String buidCMD(){
      //copy tftp:/工单号/BD_2228P_2.2.0D_76153_08036_2020.bin flash:Switch.bin 192.168.0.1
        StringBuilder builder=new StringBuilder();
        builder.append("copy tftp:").append(srcFile).append(" flash:").append(dstFile).append(" ").append(tftpIP);
        return builder.toString();
    }


}
